package com.digitalchina.lxnsy.constant;

import android.os.Environment;

import com.digitalchina.lxnsy.R;

import java.io.File;

/**
 * ================================================
 * 项目名称：bigdata
 * 类描述：
 * 包名：com.digitalchina.bigdata.constant
 * 创建人：郑皓
 * 创建时间：2016/5/18 14:58
 * 修改备注：
 * ================================================
 */
public interface Constant {


    String PACKET_NAME = "com.digitalchina.bigdata";
    String SD_CARD_FOLDER_PATH = Environment.getExternalStorageDirectory()
            .getAbsolutePath() + File.separator + PACKET_NAME;// 在sd卡上建立的文件夹
    String CROP_IMAGE_PATH = Environment.getExternalStorageDirectory()
            .getPath() + "/" + "crop_temp_image.jpg";

    String RESPONSE_CODE_SUCCESS = "0"; // 接口访问成功

    String IMAGE_CACHE_FOLDER = "/img_cache";// 图片缓存文
    String IMAGE_RES_FOLDER = "/img_res";// 图片资源文件
    String IMAGE_SAVE_FOLDER = "/img_save"; // 存储图片
    String FOLDER_EXCEPTION = "/CrashInfos";// 异常手机文件夹
    String FILE_EXCEPTION = "CrashLog.txt";

    /**
     * ================================= 正则常量 =================================
     */
    String USER_TYPE_PERSON = "10"; // 个人用户
    String USER_TYPE_EXPERT = "14"; // 大数据专家用户
    String USER_TYPE_ADMIN = "50"; // 企业用户

    String SHOW_IMAGE_TYPE_SMALL = "_s";//小图标识
    String SHOW_IMAGE_TYPE_MID = "_m";//中图标识
    String SHOW_IMAGE_TYPE_BIG = "_c";//大图标识
    String SHOW_IMAGE_TYPE_RES = "_0";//原图标识

    String APP_ID = "app008"; // 应用编号
    String APP_CHANNEL = "1"; // 应用渠道  PC：0，移动端：1
    String RENDER_TYPE = "pl_ercode"; // RenderType 二维码分享

    String STORE_GOODS = "6"; // 收藏商品
    String STORE_MERCHANTS = "9"; // 收藏商户

    int IMAGE_ITEM_ADD = -1;

    int DIALOG_DELETE_WHAT = 1; // 删除对话框

    //发货类型：0-不需发货，1-自提，2-邮寄
    String SHIPPING_TYPE_NO_NEED = "0";
    String SHIPPING_TYPE_TAKE_THEIR = "1";
    String SHIPPING_TYPE_POST = "2";

    //支付类型 0-线下支付，1-在线支付
    String PAYMENT_TYPE_OFF_LINE = "0";
    String PAYMENT_TYPE_ON_LINE = "1";

    // 支付类型 支付宝=1 微信=2
    int PAY_TYPE_ALI = 1;
    int PAY_TYPE_WX = 2;

    // 极光推送标签/别名设置
    int MSG_SET_ALIAS = 1001;
    int MSG_SET_TAGS = 1002;

    // 推送类型
    String JPUSH_TYPE_EVALUATE = "1";  // 评价提醒
    String JPUSH_TYPE_ATTENTION = "2"; // 关注提醒
    String JPUSH_TYPE_AGRICULTURAL_SERVICE = "3"; // 农事服务提醒
    String JPUSH_TYPE_TECHNOLOGIES = "4"; // 技术大全
    String JPUSH_TYPE_ACTIVITY = "5"; // 活动


    /** ================================= 正则常量 ================================= */
    /**
     * 正则：手机号（简单）
     */
    String REGEX_MOBILE_SIMPLE = "^[1]\\d{10}$";
    /**
     * 正则：手机号（精确）
     * 移动：134(0-8)、135、136、137、138、139、147、150、151、152、157、158、159、178、182、183、184、187、188
     * 联通：130、131、132、145、155、156、175、176、185、186
     * 电信：133、153、173、177、180、181、189
     * 全球星：1349
     * 虚拟运营商：170
     */
    String REGEX_MOBILE_EXACT = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|(147))\\d{8}$";
    /**
     * 正则：电话号码
     */
    String REGEX_TEL = "^0\\d{2,3}[- ]?\\d{7,8}";
    /**
     * 正则：车牌号
     */
    String REGEX_CAR_NO = "[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}";

    /**
     * 20-"待发货"-邮寄 ORDER_STATUS_POST_WAIT_DELIVERY
     * 21-"待收货"-邮寄 ORDER_STATUS_POST_WAIT_RECEIVING
     * 22-"待评价"-邮寄 ORDER_STATUS_POST_WAIT_EVALUATE
     * 23-"已关闭"-邮寄 ORDER_STATUS_POST_CLOSE
     * 24-"已取消"-邮寄 ORDER_STATUS_POST_CANCEL
     * 29-"待付款"-邮寄 ORDER_STATUS_POST_WAIT_PAYMENT
     */
    String ORDER_STATUS_POST_WAIT_DELIVERY = "20";
    String ORDER_STATUS_POST_WAIT_RECEIVING = "21";
    String ORDER_STATUS_POST_WAIT_EVALUATE = "22";
    String ORDER_STATUS_POST_CLOSE = "23";
    String ORDER_STATUS_POST_CANCEL = "24";
    String ORDER_STATUS_POST_WAIT_PAYMENT = "29";


    /**
     * 首页recycleView  type
     */
    int ITEM_TYPE_SERVICE_TYPE = 1; // 农事服务
    int ITEM_TYPE_SERVICE_LIST = 2;
    int ITEM_TYPE_TRAIN_TYPE = 3;   // 农科培训
    int ITEM_TYPE_TRAIN_LIST = 4;
    int ITEM_TYPE_HOT_ANSWER_TYPE = 5; // 热门回答
    int ITEM_TYPE_HOT_ANSWER_LIST = 6;
    int ITEM_TYPE_TECHNOLOGIES_TYPE = 7; // 技术大全
    int ITEM_TYPE_TECHNOLOGIES_LIST = 8;
    int ITEM_TYPE_CONSULT_TYPE = 9;  // 咨询动态
    int ITEM_TYPE_CONSULT_LIST = 10;
    int ITEM_TYPE_ACTIVITY_TYPE = 11;  // 热门活动
    int ITEM_TYPE_ACTIVITY_LIST = 12;
    int ITEM_TYPE_SHARE_TYPE = 13;  // 共享精选
    int ITEM_TYPE_SHARE_LIST = 14;

    /**
     * 用户行为类型
     */

    String BEHAVIOR_TECHNOLOGY = "0";
    String BEHAVIOR_EXPERT_DETAIL = "1";
    String BEHAVIOR_EXPERT_CONSULT_SINGLE = "2";
    String BEHAVIOR_EXPERT_CONSULT_GROUP = "3";

    /**
     * 记账类型  支出/收入
     */
    String [] FARM_ACCOUNT_OUT_TYPE_ARRAY = {"700201","700202","700203","700204","700205","700206","700207","700208"};
    String [] FARM_ACCOUNT_OUT_NAME_ARRAY = {"农药","肥料","人工费","硬件设施","地租","苗木","水电","其他支出"};
    String [] FARM_ACCOUNT_IN_TYPE_ARRAY = {"700301","700302","700303","700304"};
    String [] FARM_ACCOUNT_IN_NAME_ARRAY = {"卖果","政府补贴","卖苗","其他收入"};

    String [] FARM_ACCOUNT_TYPE_ARRAY = {"700201","700202","700203","700204","700205","700206","700207","700208","700301","700302","700303","700304"};
    String [] FARM_ACCOUNT_NAME_ARRAY = {"农药","肥料","人工费","硬件设施","地租","苗木","水电","其他支出","卖果","政府补贴","卖苗","其他收入"};
    int [] FARM_ACCOUNT_IMAGE_ARRAY = {R.drawable.ic_farm_account_out_1,R.drawable.ic_farm_account_out_2,R.drawable.ic_farm_account_out_3,R.drawable.ic_farm_account_out_4,
            R.drawable.ic_farm_account_out_5,R.drawable.ic_farm_account_out_6,R.drawable.ic_farm_account_out_7,R.drawable.ic_farm_account_out_8,
            R.drawable.ic_farm_account_in_1,R.drawable.ic_farm_account_in_2,R.drawable.ic_farm_account_in_3,R.drawable.ic_farm_account_in_4,};


    /**
     * 收藏类型 15-资讯 16-活动 17-共享 18-商户
     */
    String COLLECT_TYPE_INFO = "0";
    String COLLECT_TYPE_ACTIVITY = "1";
    String COLLECT_TYPE_SHARE = "2";
    String COLLECT_TYPE_SHOP = "3";


    String[] specificationArray = {"台", "袋", "个", "瓶", "包"};
}
